require('./check')()

const path = require('path')
const express = require('express')
const webpack = require('webpack')
const {ProgressPlugin} = require('webpack')
const webpackDevMiddleware = require('webpack-dev-middleware')
const chalk = require('chalk')
const bodyParser = require('body-parser')


const webpackConfig = require('../config/webpack.base.conf')

const app = express()


app.use(express.static(path.resolve(__dirname, './static')))


app.use(webpackDevMiddleware(webpack({
  ...webpackConfig,
  devServer: {
    
  },

  mode:'development'

}),{  
  stats: 'errors-only'
}))



app.listen(8000,()=>{
  console.log(chalk.blue('Server is running at http://www.localhost:8000 ^_^'))
})


